	<div class="right_content">
		<p class="right_c_t">您的帐户管理</p>
		<p class="right_c_tt">管理您的帐户资料，设置帐号安全，修改密码，管理收货地址，增强您的购物体验</p>
		<div class="right_form_t">账户信息</div>
		<form id="form1" name="form1" method="POST" action="usermanage-post.php">
		<table class="right_form_i account_manage">
			<tbody>
                <input type="hidden" name="userid" value="{$user[0].id}" />				
				<tr>
					<td><label>姓名:</label><input type="text" name="username" value="{$user[0].fdName}"></td>
				</tr>
				<tr>
					<td><label>公司名:</label><input type="text" name="company" value="{$user[0].fdCompany}" /></td>
				</tr>
				<tr>
					<td><label>职位:</label><input type="text" name="position" value="{$user[0].fdPosition}"></td>
				</tr>
				<tr>
					<td><label>联系地址:</label><input type="text" name="address" value="{$user[0].fdAddress}"></td>
				</tr>		
				<tr>
					<td><label>邮政编码:</label><input type="text" name="postcode" value="{$user[0].fdPostcode}"></td>
				</tr>	
				<tr>
					<td><label>联系电话:</label><input type="text" name="telephone" value="{$user[0].fdTelePhone}"></td>
				</tr>
				<tr>
					<td><label>手机:</label><input type="text" name="mobilephone" value="{$user[0].fdMobilePhone}"></td>
				</tr>
				<tr>
					<td><label>常用邮箱:</label><input type="text" name="email" value="{$user[0].fdEmail}"></td>
				</tr>
			</tbody>
		</table>
		<div class="right_form_ctrl">
			<a href="usercenter.php" class="btn_cancel_r">取消</a>
			<a href="javascript:void" id="btn_s" class="btn_s">保存</a>
			<span>如有问题，欢迎随时致电：020-87509004</span>
		</div>
		</form>
	</div>
</div>
{literal} 
<script type="text/javascript">
	$('#form1').validate({
		rules: 
		{
			email: {
				required: true,
				email: true
			},
			telephone:{
				isTel:true
			},
			mobilephone:{   
				required:true,   
				isMobile:true  
			},
			postcode:{
				isZipCode:true
			}
		},
		messages: 
		{
			email: {
			required: "请输入Email地址",
			email: "请输入正确的email地址"
			},
			telephone:{
				isTel: "请输入一个有效的联系电话" 
			},
			mobilephone:{   
				required: "请输入您的手机",   
				isMobile: "请输入一个有效的手机"  
			},
			postcode:{
				isTel: "请输入一个有效的邮政编码" 
			}
		},
		errorPlacement: function(error, element) {
			var $td = $('<td></td>');
				$td.append(error);
				element.closest('tr').append($td);   
		}
	});
	
	$('#btn_s').click(function(){
		if($("#form1").validate()){
		 $("#form1").submit();
	 }
	});
</script>
{/literal} 